package com.kantboot.functional.third.party.wechat.setting;

import com.kantboot.system.setting.service.ISysSettingService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

@Component
public class FunctionalThirdPartyWechatSetting {

    @Resource
    private ISysSettingService service;

    /**
     * 获取微信小程序的appid
     * @return appid
     */
    public String getWechatMpAppid() {
        return service.getValue("wechat", "mpAppid");
    }

    /**
     * 获取微信小程序的appSecret
     * @return appSecret
     */
    public String getWechatMpAppSecret() {
        return service.getValue("wechat", "mpAppSecret");
    }
}
